<!DOCTYPE HTML>
<head>
	<meta http-equiv="content-type" content="text/html" charset="utf8" />
	<meta name="author" content="haipt" />
    <link rel="stylesheet" href="<?php echo $this->webroot?>css/frontend/init.css">
    <script type="text/javascript" src="<?php echo $this->webroot?>js/jquery-1.6.2.min.js"></script>
	<script>
        var path="http://demo.com/benhhai";
    </script>
    <title>Các bệnh về lúa</title>
</head>

<body>
<div id="header">
    this is header
    <div id="logo">
        <img src="" alt="logo"/>
    </div>
    <div id= "banner">
        Banner
    </div>
    <div id="top_menu">
            <ul>
                <li><a href="<?php echo $this->Html->url("/")?> "> Trang chủ</a></li>
                <li><a href=""> Button 1</a></li>
                <li><a href=""> Button 2</a></li>
                <li><a href=""> Button 3</a></li>
                <li><a href=""> Button 4</a></li>
                <li><a href=""> Button 5</a></li>
                <li><a href=""> Button 6</a></li>
                <li><a href=""> Button 7</a></li>
            </ul>
    </div>
 </div>
<div id="main_content">
    <?php echo $this->element("frontend/left_menu"); ?>
    <?php echo $content_for_layout;?>
    
</div>
<div id="footer" class="clearfix">
     
    <p class="coppyright"> Coppyright @ 2013. All right reserved </p> 
</div>
<script>
$(".parent_title").click(function()
{
    $(".list_child").siblings().removeClass('current');
    if(!$(this).next('ul.list_child').is(':visible')){
        $(".list_child").siblings().removeClass('current').next('ul.list_child').hide();
        $(this).addClass("current").next('ul.list_child').slideToggle('400');
    }
    else{
        $(this).next('ul.list_child').hide('slow');
    }
   
    if ($(this).siblings("ul.list_child").length == 0) {
        window.location = $(this).find("a").attr("href");
    }
});
var current_selected = $("ul.sub-menu li").each(function(){
    check_class = $(this).attr("class");
    if (check_class=="current"){
        $(this).parent().attr("id", "ul_current");
        a = $("#ul_current").prev().addClass("current");
        $(this).parent().show();
    }
});


</script>     
</body>

</html>